<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>4 v-bind 样式增强</title>
    <style>
      .box {
        width: 200px;
        height: 200px;
        border: 3px solid #000;
        font-size: 30px;
        margin-top: 10px;
      }

      .pink {
        background-color: pink;
      }

      .big {
        width: 300px;
        height: 300px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- 语法 :class = "对象/数组" -->
      <div class="box" :class="{pink:true,big:true}">joker</div>

      <div class="box" :class="['pink','big']">joker</div>
    </div>

    <script src="../js/vue.js"></script>
    <script>
      var app = new Vue({
        el: "#app",
        data: {
          message: "",
        },
        methods: {},
      });
    </script>
  </body>
</html>
